package com.bang.study.adapter;

/**
 * @ClassName: TFCardAdapter
 * @author: BANG
 * @Date: 2019/10/28 17:38
 * @Version: 1.0
 * @Modified By:
 * @Desc: TODO
 */
public class TFCardAdapter implements SDCard {

    private TFCard tfCard;

    public TFCardAdapter(TFCard tfCard) {
        this.tfCard = tfCard;
    }

    @Override
    public String readSD() {
        return tfCard.readTF();
    }

    @Override
    public void writeSD(String msg) {
        tfCard.writeTF(msg);
    }
}
